home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7781 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  60 lines

  1. Newsgroups: comp.lang.c
  2. Path: in2.uu.net!world!dougb
  3. From: dougb@world.std.com (doug a blaisdell)
  4. Subject: Help: RCS and make.
  5. Message-ID: <DnIDn2.8rK@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. X-Newsreader: TIN [version 1.2 PL2]
  8. Date: Wed, 28 Feb 1996 23:09:02 GMT
  9.  
  10. hi y'all--
  11.  
  12. Anyone know how to get around the problem where the makefile
  13. has some files that are dependent on RCS: eg:
  14.  
  15. foo.c: RCS/foo.c,v
  16.         co foo.c
  17.  
  18. And you do something like:
  19.  
  20.     co -l foo.c
  21.  
  22. and then a:
  23.  
  24.     make foo
  25.  
  26. Make will call RCS to checkout foo.c again. In fact,
  27. every time you run make thereafter, because "co -l"
  28. alters the mod time for foo.c,v, making it newer than
  29. what it checked out, and make detects this. The work
  30. around is to touch foo.c, after "co -l", so foo.c
  31. will appear newer than foo.c,v, and make won't call
  32. "co" again. But, still, unnecessary checkouts are
  33. caused when others do makes on the same sources, if
  34. the ./RCS directory is really a link to a common
  35. source control area.
  36.  
  37. -------------------
  38.  
  39. The reason this happens (it doesn't happen using "co"
  40. without "-l") is that:
  41.  
  42. The RCS file mod time gets changed, because -l forces
  43. lock info to be added to foo.c,v. These files are
  44. shared by several people, so rcs locking is set to
  45. "strict", which I guess causes the RCS file to be
  46. updated with locking info. )
  47.  
  48. Anybody know a way around this incompatibility between
  49. RCS and make??
  50.  
  51.         Any help appreciated!!
  52.         doug blaisdell
  53.  
  54. ------------------------------------------------------------
  55.  
  56. When marriage is outlawed, only outlaws will have inlaws.
  57. (might be a crime stopper.)
  58.  
  59. ------------------------------------------------------------
  60.